package message

import "zstackgo/pkg/header/errorcode"

type MessageReply struct {
	*MessageImpl

	Success  bool
	Canceled bool
	Error    *errorcode.ErrorCode
}

func (m *MessageReply) ImplName() string {
	return "MessageReply"
}

func (m *MessageReply) SetError(err *errorcode.ErrorCode) {
	m.Error = err
	m.Success = false
}

func (m *MessageReply) SetSuccess(success bool) {
	m.Success = success
}
